package com.sentinel.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

/**
 * @作者: 林江
 * @创建时间: 2023/12/15
 * @功能:
 */
@Service
public class OrderService {

    // 保存订单接口
    @SentinelResource("addOrder")
    public void addOrder() {
        System.out.println(Thread.currentThread().getName() + "保存订单接口");
    }
}
